﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebApplication1.classes.Core.JSTree
{
    public class JsTreeNode{
        public JsTreeNodeAttributes attr { get; set; }
        public JsTreeNodeData data { get; set; }
        public string state { get; set; }
        public List<JsTreeNode> children { get; set; }

        public JsTreeNode() {
            children = new List<JsTreeNode>();
            data = new JsTreeNodeData();
            attr = new JsTreeNodeAttributes();
            state = "close";
        }

        public JsTreeNode(string title):this() {
            data.title = title;

        }

    }
}